﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class FieldDutyTreeBLL : IFieldDutyTreeBLL
    {
        //private static readonly D_HRM_MP_FieldDutyTree dal =  IDALResourceMasterTree dal = DataAccess.CreateResourceMasterTree();

        public FieldDutyTreeBLL()
        {

        }

        public IList<FieldDutyTreeInfo> GetFieldDutyTree()
        {
            FieldDutyTreeDAL dal = new FieldDutyTreeDAL();

            return dal.GetFieldDutyTree();
        }

        public IList<FieldDutyTreeInfo> GetFieldDutyTree(string parent_id)
        {
            FieldDutyTreeDAL dal = new FieldDutyTreeDAL();

            if (parent_id == null)
                return null;

            return dal.GetFieldDutyTree(parent_id);
        }

        //public IList<ResourceMasterTreeInfo> GetResourceMasterResultSearch(string text_search)
        //{
        //    return dal.GetResourceMasterResultSearch(text_search);
        //}
    }
}
